home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / role / pinfocom_3_0.lha / Source / amiga_protos.h < prev    next >
C/C++ Source or Header  |  1992-10-22  |  4KB  |  96 lines

  1. /* amiga_protos.h
  2.  *
  3.  *  ``pinfocom'' -- a portable Infocom Inc. data file interpreter.
  4.  *  Copyright (C) 1987-1992  InfoTaskForce
  5.  *
  6.  *  This program is free software; you can redistribute it and/or modify
  7.  *  it under the terms of the GNU General Public License as published by
  8.  *  the Free Software Foundation; either version 2 of the License, or
  9.  *  (at your option) any later version.
  10.  *
  11.  *  This program is distributed in the hope that it will be useful,
  12.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *  GNU General Public License for more details.
  15.  *
  16.  *  You should have received a copy of the GNU General Public License
  17.  *  along with this program; see the file COPYING.  If not, write to the
  18.  *  Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. /*
  22.  * $Header: RCS/amiga_protos.h,v 3.0 1992/10/21 16:56:19 pds Stab $
  23.  */
  24.  
  25.     /* Clipboard support routines. */
  26.  
  27. VOID        ClipClose(VOID);
  28. LONG        ClipRead(STRPTR Buffer,const LONG Len);
  29. VOID        ClipSave(const STRPTR Buffer,const LONG Len);
  30. Bool        ClipOpen(VOID);
  31.  
  32.     /* Console text output and auxilary routines. */
  33.  
  34. UWORD        ConCharWidth(const UBYTE Char);
  35. VOID        ConCursorOff(VOID);
  36. VOID        ConCursorOn(const int New);
  37. VOID        ConSet(const int X,const int Y,const int New);
  38. VOID        ConMove(const int Delta,const int New);
  39. VOID        ConClearEOL(VOID);
  40. VOID        ConCharBackspace(const int Delta,const int New);
  41. VOID        ConCharDelete(const int New);
  42. VOID        ConCharInsert(const UBYTE Char);
  43. VOID        ConScrollUp(VOID);
  44. VOID        ConWrite(const char *Line,LONG Len,LONG Indent);
  45. VOID        ConCloseLibs(VOID);
  46. Bool        ConOpenLibs(VOID);
  47. VOID        ConCleanup(VOID);
  48. Bool        ConSetup(VOID);
  49. UBYTE        ConGetChar(const Bool SingleKey);
  50. VOID        ConSetColour(const int Colour);
  51. VOID        ConSetKey(const int Key,const STRPTR String,const int Len);
  52. VOID        ConPrintf(const char *Format,...);
  53. VOID        ConSwap(STRPTR a,STRPTR b,int Len);
  54. int        ConInput(char *Prompt,char *Input,const int MaxLen,const Bool DoHistory);
  55. VOID        ConPrintStatus(const char *Left,const char *Right);
  56. LONG        ConShowRequest(const struct Window *Window,const STRPTR Text,const STRPTR Gadgets,...);
  57. Bool        ConQueryOption(int Option);
  58. VOID        ConUpdateMenus(VOID);
  59. VOID        ConLockMenus(VOID);
  60. VOID        ConUnlockMenus(VOID);
  61. char *        ConSplitLine(char *Line,int Len,Bool ReturnPrompt);
  62. VOID        ConPrintLine(const char *Buffer,int Len,int Indent);
  63. Bool        ConCheckStory(const char *Name);
  64. char *        ConLocateStory(const char *Directory,const char *Default);
  65. VOID        ConQueryStoryInformation(const char *Name);
  66. VOID        ConAbout(VOID);
  67.  
  68.     /* Game file selection routines. */
  69.  
  70. VOID        GameAdd(struct List *List,int Index,const char *FileName);
  71. Bool        GameMatch(const char *Name,const char *Pattern);
  72. VOID        GameMultiScan(struct List *GameList,const char *Pattern);
  73. char *        GameGetNodeName(struct List *List,const int Offset);
  74. VOID        GameFreeList(struct List *List);
  75. Bool        GameIsAssign(const STRPTR Name);
  76. struct List *    GameBuildList(const char *Pattern);
  77. char *        GameGetStoryName(const char *Pattern,const struct Window *Window);
  78. VOID        GameCentreWindow(const struct Screen *Screen,const WORD WindowWidth,const WORD WindowHeight,WORD *LeftEdge,WORD *TopEdge);
  79. struct Gadget *    GameCreateGadgets(struct Gadget **GadgetArray,struct Gadget **GadgetList,const APTR VisualInfo,const struct List *Labels,const struct Screen *Screen,WORD *Width,WORD *Height);
  80. Bool        GameSelect(char *Name);
  81.  
  82.     /* Scripting support routines. */
  83.  
  84. Bool        ScriptWrite(const char *Buffer,const int Width);
  85. struct Gadget *    ScriptCreateGadgets(struct Gadget **GadgetArray,struct Gadget **GadgetList,const APTR VisualInfo,UWORD *Width,UWORD *Height,const struct Screen *Screen);
  86. Bool        ScriptGetPrinterName(STRPTR PrinterName,int *PrinterWidth);
  87. char *        ScriptSplitLine(char *Line,int Len,const Bool ReturnPrompt);
  88.  
  89.     /* Sound support routines. */
  90.  
  91. Bool        SoundInit(VOID);
  92. VOID        SoundExit(VOID);
  93. VOID        SoundAbort(VOID);
  94. VOID        SoundStop(VOID);
  95. VOID        SoundStart(VOID);
  96.